<div>
    <x-mini-header>
        <x-slot name="url"></x-slot>
        <x-slot name="title">注册</x-slot>
    </x-mini-header>

    <form class="p-2 space-y-2" wire:submit.prevent="submit">
        <div class="flex flex-col">
            <label for="account">账号</label>
            <input wire:model="account" class="border-b py-2 focus:outline-none focus:border-red-300 transition-all" type="text" id="account" placeholder="请输入您的登录账号" autofocus autocomplete="off">
            @error('account') <span class="text-red-600 text-sm pt-1">{{ $message }}</span> @enderror
        </div>

        <div class="flex flex-col">
            <label for="password">密码</label>
            <input wire:model="password" class="border-b py-2 focus:outline-none focus:border-red-300 transition-all" type="password" id="password" placeholder="请输入您的登录密码" autocomplete="off">
            @error('password') <span class="text-red-600 text-sm pt-1">{{ $message }}</span> @enderror
        </div>

        <div class="flex flex-col">
            <label for="password_confirmation">确认密码</label>
            <input wire:model="password_confirmation" class="border-b py-2 focus:outline-none focus:border-red-300 transition-all" type="password" id="password_confirmation" placeholder="请输入您的确认密码" autocomplete="off">
            @error('password_confirmation') <span class="text-red-600 text-sm pt-1">{{ $message }}</span> @enderror
        </div>

        <div class="flex flex-col">
            <label for="invitation_code">邀请码</label>
            <input wire:model="share_code" class="border-b py-2 focus:outline-none focus:border-red-300 transition-all" type="text" id="invitation_code" placeholder="邀请码，如无可不填" autocomplete="off">
            @error('share_code') <span class="text-red-600 text-sm pt-1">{{ $message }}</span> @enderror
        </div>

        <div class="py-2">
            <button type="submit" class="w-full py-3 bg-gradient-to-r from-red-500 to-[red] text-white">登录</button>
        </div>

        <div class="flex justify-center items-center divide-x text-sm">
            <a wire:navigate href="{{ route('login') }}" class="text-red-600 underline px-2">立即登录</a>
            <a href="" class="text-red-600 underline px-2">忘记密码</a>
        </div>
    </form>
</div>
